# tuple  元组不可变
t = (1, 2, 3, 4, 5, 6)
print(t.index(3))
print(t.count(3))
print(t[1:3])

t1 = (1,)  # 当元组只有一个元素得时候，需要加,
print(type(t1))

# 元组和列表相互转换
print(list((1, 2, 3)))
print(tuple([1, 2, 3]))

#
gender = ("男", "女", "保密")
print(gender)
